<?php
class Form_LoginForm extends Zend_Form 
{
	public function init(){
                
        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Usuário:')
                 ->setRequired(true)
                 ->setAttrib('class','input')
                 ->setAttrib('size','20')
                 ->setAttrib('tabindex','10')
                 ->addFilter('StringTrim')
                ->addValidator('NotEmpty')
                ->addValidator('StringLength',false,array(0,75));
                 
        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Senha:')
                 ->setRequired(true)
                 ->setAttrib('class','input')
                 ->setAttrib('size','20')
                 ->setAttrib('tabindex','20')
                 ->addFilter('StringTrim')
                ->addValidator('NotEmpty')
                ->addValidator('StringLength',false,array(0,75));
                 
        $login = new Zend_Form_Element_Submit('login');
        $login->setLabel('Login')
        		->setAttrib('class','button-primary')
        		->setAttrib('width','10px')
                ->setAttrib('tabindex','100');
        
        $this->addElements(array($username, $password, $login));
    }
}
?>